﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $configs['websiteName'] . '——勤助岗位报名' ?></title>
<link type="text/css" rel="stylesheet" href="<?php echo CSS_DIR ?>/base.css" />
<link type="text/css" rel="stylesheet" href="<?php echo CSS_DIR ?>/default.css" />
<link type="text/css" rel="stylesheet" href="<?php echo CSS_DIR ?>/index.css" />
<script src="<?php echo JS_DIR ?>/jquery.js" type="text/javascript"></script>
<script src="<?php echo JS_DIR ?>/formValidator_lcg.js" type="text/javascript"></script>
<script src="<?php echo JS_DIR ?>/formValidatorRegex.js" type="text/javascript"></script>
<script language="Javascript"> 
alert("温馨提示：勤助实行一人一岗制，请勿重岗！");

var i = <?php echo $user['work']['office_count']?>;
function doCheck(ctrl) {
	var iMaxChecked = 3;
	if(ctrl.checked && i <= iMaxChecked) {i++;}
	if(ctrl.checked == false) {i--;}
	
	if(i>=iMaxChecked) {
		alert("办公室岗位只能报其中两个.");
		ctrl.checked = false;
		i--;
	}
	
}
</script>
<script language="javascript" type="text/javascript">
<!--

function Reset_ImgSize(obj, MaxW, MaxH) {
    if (obj != null) imageObject = obj;
    var state=imageObject.readyState;
    var oldImage = new Image();
    oldImage.src = imageObject.src;
    var dW=oldImage.width; var dH=oldImage.height;
    if(dW>MaxW || dH>MaxH) {
        a=dW/MaxW; b=dH/MaxH;
        if(b>a) a=b;
        dW=dW/a; dH=dH/a;
    }
    if(dW > 0 && dH > 0)
        imageObject.width=dW;imageObject.height=dH;
    if(state!='complete' || imageObject.width>MaxW || imageObject.height>MaxH) {
        setTimeout("ResizeImage(null,"+MaxW+","+MaxH+")",40);
    }
	showOldWork();
}

function showOldWork(){
	var oldWork = document.getElementById('oldwork');	
	if(oldWork.value == ''){
	oldWork.value = '上岗时间：　　部门：　　岗位：　　下岗时间：　　备注：';
	}
}

function checkLib(){
	var lib=document.getElementById('lib');
	if(($('#group_14').attr("checked"))==true && lib.value=='')
	{
		var ck = $('#lib').val();
		if (ck.length == 0) {
			alert('你已选择了图书馆，请把图书馆具体职位也选上！');
			return false;
		}
		return true;
	}
	
}
//-->
$(document).ready(function() {
	$("#birthday").focus(function() {
		WdatePicker({
			skin:'whyGreen',
			oncleared:function(){
				$(this).blur();
			},
			onpicked:function(){
				$(this).blur();
			}
		});
	});
});


function CallPrint() {
 var WinPrint = window.open('<?php echo url('worker', 'prePrint') ?>','','letf=0,top=0,width=700,height=1100,toolbar=0,scrollbars=yes,status=0,menubar=yes');
}
</script>

<style>
.formTb {
	width:100%;
	border:1px solid #85D2EF;
	border-collapse:collapse;
}
.formTb tr {text-align:left;}
.formTb td {
	border:1px solid #D5F1F9;
	padding:3px;
	line-height:25px;
	height:25px;
}
.formTb .t {
	text-align:center;
}
</style>
</head>

<body>
<?php require($header) ?>

<div class="container">
	<div id="content">
		<div class="subContent" style="width:100%;">
			<form action="<?php echo $action ?>" method="post" id="register" >
				<table class="formTb">
					<tr>
						<td width="10%" class="t">姓名</td>
						<td width="15%"><?php echo $user['trueName'] ?><?php echo $form['user_id'] ?></td>
						<td width="13%" class="t">性别</td>
						<td width="13%" class="t"><?php echo $user['sex'] ?></td>
						<td width="13%" class="t">出生日期</td>
						<td width="13%"><?php echo $form['birthday'] ?></td>
						<td rowspan="6" colspan="2" width="23%" class="t">
							<img src="<?php echo $user['pic'] ?>" onload="Reset_ImgSize(this, 150, 200);" />
						</td>
					</tr>
					<tr>
						<td class="t">学院</td>
						<td><?php echo $user['college'] ?></td>
						<td class="t">学号</td>
						<td class="t"><?php echo $user['num'] ?></td>
						<td class="t">籍贯</td>
						<td><?php echo $user['province'] ?></td>
					</tr>
					<tr>
						<td class="t">系、专业</td>
						<td colspan="2"><?php echo $user['major'] ?></td>
						<td class="t">层次</td>
						<td colspan="2"><?php echo $user['userType'] ?></td>
					</tr>
					<tr>
						<td class="t">校内住址</td>
						<td colspan="5"><?php echo $user['room'] ?></td>
					</tr>
					<tr>
						<td class="t">家庭住址</td>
						<td colspan="5"><?php echo $form['home'] ?></td>
					</tr>
					<tr>
						<td class="t">贫困生</td>
						<td colspan="2"><?php echo $user['poor'] ?></td>
						<td class="t">家庭情况</td>
						<td colspan="2"><?php echo $form['family'] ?></td>
					</tr>
					<tr>
						<td class="t">联系电话</td>
						<td colspan="2"><?php echo $user['tel'] ?></td>
						<td class="t">政治面貌</td>
						<td colspan="2"><?php echo $user['politics']	?></td>
						<td colspan="2">&nbsp;</td>
					</tr>
					<tr>
						<td class="t">广州工商银行卡号</td>
						<td colspan="7"><?php echo $user['bankCardNum'] ?></td>
					</tr>
					<tr>
						<td colspan="8" class="t">课程表（有课的请打勾）</td>
					</tr>
					<tr class="t">
						<td>节数</td>
						<td>星期一</td>
						<td>星期二</td>
						<td>星期三</td>
						<td>星期四</td>
						<td>星期五</td>
						<td>星期六</td>
						<td>星期日</td>
					</tr>
					<tr class="t">
						<td>1</td>
						<td><input type="checkbox" value="0_0" name="course[]" <?php if($user['work']['course']['00']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="0_1" name="course[]" <?php if($user['work']['course']['01']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="0_2" name="course[]" <?php if($user['work']['course']['02']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="0_3" name="course[]" <?php if($user['work']['course']['03']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="0_4" name="course[]" <?php if($user['work']['course']['04']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="0_5" name="course[]" <?php if($user['work']['course']['05']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="0_6" name="course[]" <?php if($user['work']['course']['06']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>2</td>
						<td><input type="checkbox" value="1_0" name="course[]" <?php if($user['work']['course']['10']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="1_1" name="course[]" <?php if($user['work']['course']['11']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="1_2" name="course[]" <?php if($user['work']['course']['12']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="1_3" name="course[]" <?php if($user['work']['course']['13']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="1_4" name="course[]" <?php if($user['work']['course']['14']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="1_5" name="course[]" <?php if($user['work']['course']['15']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="1_6" name="course[]" <?php if($user['work']['course']['16']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>3</td>
						<td><input type="checkbox" value="2_0" name="course[]" <?php if($user['work']['course']['20']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="2_1" name="course[]" <?php if($user['work']['course']['21']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="2_2" name="course[]" <?php if($user['work']['course']['22']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="2_3" name="course[]" <?php if($user['work']['course']['23']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="2_4" name="course[]" <?php if($user['work']['course']['24']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="2_5" name="course[]" <?php if($user['work']['course']['25']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="2_6" name="course[]" <?php if($user['work']['course']['26']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>4</td>
						<td><input type="checkbox" value="3_0" name="course[]" <?php if($user['work']['course']['30']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="3_1" name="course[]" <?php if($user['work']['course']['31']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="3_2" name="course[]" <?php if($user['work']['course']['32']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="3_3" name="course[]" <?php if($user['work']['course']['33']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="3_4" name="course[]" <?php if($user['work']['course']['34']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="3_5" name="course[]" <?php if($user['work']['course']['35']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="3_6" name="course[]" <?php if($user['work']['course']['36']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>5</td>
						<td><input type="checkbox" value="4_0" name="course[]" <?php if($user['work']['course']['40']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="4_1" name="course[]" <?php if($user['work']['course']['41']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="4_2" name="course[]" <?php if($user['work']['course']['42']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="4_3" name="course[]" <?php if($user['work']['course']['43']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="4_4" name="course[]" <?php if($user['work']['course']['44']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="4_5" name="course[]" <?php if($user['work']['course']['45']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="4_6" name="course[]" <?php if($user['work']['course']['46']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>6</td>
						<td><input type="checkbox" value="5_0" name="course[]" <?php if($user['work']['course']['50']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="5_1" name="course[]" <?php if($user['work']['course']['51']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="5_2" name="course[]" <?php if($user['work']['course']['52']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="5_3" name="course[]" <?php if($user['work']['course']['53']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="5_4" name="course[]" <?php if($user['work']['course']['54']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="5_5" name="course[]" <?php if($user['work']['course']['55']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="5_6" name="course[]" <?php if($user['work']['course']['56']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>7</td>
						<td><input type="checkbox" value="6_0" name="course[]" <?php if($user['work']['course']['60']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="6_1" name="course[]" <?php if($user['work']['course']['61']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="6_2" name="course[]" <?php if($user['work']['course']['62']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="6_3" name="course[]" <?php if($user['work']['course']['63']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="6_4" name="course[]" <?php if($user['work']['course']['64']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="6_5" name="course[]" <?php if($user['work']['course']['65']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="6_6" name="course[]" <?php if($user['work']['course']['66']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>8</td>
						<td><input type="checkbox" value="7_0" name="course[]" <?php if($user['work']['course']['70']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="7_1" name="course[]" <?php if($user['work']['course']['71']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="7_2" name="course[]" <?php if($user['work']['course']['72']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="7_3" name="course[]" <?php if($user['work']['course']['73']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="7_4" name="course[]" <?php if($user['work']['course']['74']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="7_5" name="course[]" <?php if($user['work']['course']['75']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="7_6" name="course[]" <?php if($user['work']['course']['76']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>9</td>
						<td><input type="checkbox" value="8_0" name="course[]" <?php if($user['work']['course']['80']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="8_1" name="course[]" <?php if($user['work']['course']['81']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="8_2" name="course[]" <?php if($user['work']['course']['82']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="8_3" name="course[]" <?php if($user['work']['course']['83']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="8_4" name="course[]" <?php if($user['work']['course']['84']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="8_5" name="course[]" <?php if($user['work']['course']['85']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="8_6" name="course[]" <?php if($user['work']['course']['86']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>10</td>
						<td><input type="checkbox" value="9_0" name="course[]" <?php if($user['work']['course']['90']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="9_1" name="course[]" <?php if($user['work']['course']['91']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="9_2" name="course[]" <?php if($user['work']['course']['92']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="9_3" name="course[]" <?php if($user['work']['course']['93']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="9_4" name="course[]" <?php if($user['work']['course']['94']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="9_5" name="course[]" <?php if($user['work']['course']['95']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="9_6" name="course[]" <?php if($user['work']['course']['96']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>11</td>
						<td><input type="checkbox" value="10_0" name="course[]" <?php if($user['work']['course']['100']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="10_1" name="course[]" <?php if($user['work']['course']['101']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="10_2" name="course[]" <?php if($user['work']['course']['102']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="10_3" name="course[]" <?php if($user['work']['course']['103']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="10_4" name="course[]" <?php if($user['work']['course']['104']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="10_5" name="course[]" <?php if($user['work']['course']['105']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="10_6" name="course[]" <?php if($user['work']['course']['106']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>12</td>
						<td><input type="checkbox" value="11_0" name="course[]" <?php if($user['work']['course']['110']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="11_1" name="course[]" <?php if($user['work']['course']['111']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="11_2" name="course[]" <?php if($user['work']['course']['112']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="11_3" name="course[]" <?php if($user['work']['course']['113']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="11_4" name="course[]" <?php if($user['work']['course']['114']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="11_5" name="course[]" <?php if($user['work']['course']['115']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="11_6" name="course[]" <?php if($user['work']['course']['116']) echo 'checked' ?>/></td>
					</tr>
					<tr class="t">
						<td>13</td>
						<td><input type="checkbox" value="12_0" name="course[]" <?php if($user['work']['course']['120']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="12_1" name="course[]" <?php if($user['work']['course']['121']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="12_2" name="course[]" <?php if($user['work']['course']['122']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="12_3" name="course[]" <?php if($user['work']['course']['123']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="12_4" name="course[]" <?php if($user['work']['course']['124']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="12_5" name="course[]" <?php if($user['work']['course']['125']) echo 'checked' ?>/></td>
						<td><input type="checkbox" value="12_6" name="course[]" <?php if($user['work']['course']['126']) echo 'checked' ?>/></td>
					</tr>
					<tr height="70">
						<td class="t">在校勤工助学记录</td>
						<td colspan="7" align="left"><?php echo $form['oldwork'] ?></td>
					</tr>
					<tr>
						<td class="t">希望参加何种工作</td>
						<td colspan="7" style="text-align:left">
						<div class="allgroup">
							<font color="red">
								每人最多可报两个管委会办公室部门，同时还可兼报一个直辖小组岗位
								（<a href="<?php echo url('worker', 'note') ?>" target="blank">点击查看各岗位招聘要求及人数</a>）							</font><br>
								是否服从调配：<?php //echo $form['change'] ?>
							<input type="checkbox" name="change" id="change" value="1" <?php if($user['work']['change']=='是') echo 'checked' ?>/>
							<?php echo "<br>".$form['group'].':' ?>
						  <!--<?php echo $form['lib'] ?><br>
						  办公室岗位(至多只能报两个)：<br><?php echo $form['office'] ?>--></div>						</td>
					</tr>
					<tr>
						<td class="t">校内及校外经历(200字内)</td>
						<td colspan="7"><?php echo $form['experience'] ?></td>
					</tr>
					<tr>
						<td class="t">性格特点<br />(50字内)</td>
						<td colspan="7"><?php echo $form['trait'] ?></td>
					</tr>
					<tr>
						<td class="t">兴趣特长<br />(50字内)</td>
						<td colspan="7"><?php echo $form['like'] ?></td>
					</tr>
					<tr>
						<td class="t">参加勤助的理由(200字内)</td>
						<td colspan="7"><?php echo $form['acqierement'] ?></td>
					</tr>
					<tr>
						<td class="t">备注(50字内)</td>
						<td colspan="7"><?php echo $form['memo'] ?></td>
					</tr>
					<tr>
						<td colspan="8"  class="t">
							<input type="submit" name="s" onclick="return checkLib()" value="提交" />
							<input type="reset" name="r"  value="重写" />
							<input name="prePrint" type="button" id="btnPrint" onclick="javascript:CallPrint();" value="打印预览" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
<?php require($footer) ?>

<script defer="defer" src="<?php echo JS_DIR ?>/datepicker/WdatePicker.js" type="text/javascript"></script> 

</body>
</html>
